#define PanelName   "CLAA220WA01"
#define PanelDither   8
#define PanelTTL    0
#define PanelTCON   0
#define PanelLVDS   0xff
#define PanelRSDS   0
#define LVDS_TIMode             0xff
#define PanelDualPort               0xff
#define PanelSwapPort               0xff
#define PanelSwapOddML          0
#define PanelSwapEvenML         0
#define PanelSwapOddRB          0
#define PanelSwapEvenRB         0
#define PanelSwapMLSB               0
#define PanelDClkDelay              8
#define PanelInvDE                  0
#define PanelInvDClk                0
#define PanelInvHSync               0
#define PanelInvVSync               0
// driving current setting 0==>4mA, 1==>6mA, 2==>8mA ,3==>12mA
#define PanelDCLKCurrent        1 // Dclk current
#define PanelDECurrent              1 // DE signal current
#define PanelOddDataCurrent         1 // Odd data current
#define PanelEvenDataCurrent    1 // Even data current
#define PanelOnTiming1          25 // 0//40 // time between panel & data while turn on power
#define PanelOnTiming2          300 // 300//300 //30 // time between data & back light while turn on power  //20050701
#define PanelOffTiming1             250 // 300 // time between back light & data while turn off power
#define PanelOffTiming2             25 // 20 // time between data & panel while turn off power
#define PanelHSyncWidth         45//32
#define PanelHSyncBackPorch     40 //152//24
#define PanelVSyncWidth         3
#define PanelVSyncBackPorch         21 // 46
#define PanelHStart     (PanelHSyncWidth+PanelHSyncBackPorch)
#define PanelVStart     (PanelVSyncWidth+PanelVSyncBackPorch)
#define PanelWidth      1680
#define PanelHeight     1050
#define PanelHTotal         2270 // 070410 // 2006/4/25 5:38PM by Emily 1840 // 2240//2256
#define PanelVTotal         1080 // 1080//1200//1250
#define PanelMaxHTotal  2600 // 070410
#define PanelMinHTotal     1960 // 070410 //1790 // 1820 // 1860// 1800 // 1880
#define PanelMaxVTotal      1300
#define PanelMinVTotal      1030 // 070410 // 1065 // 
#define PanelDCLK            120  // 070410 modified
#define PanelMaxDCLK          170 // 070410 modified
#define PanelMinDCLK          120 // 070410 modified
//=================================================================
// TCON  setting for LVDS
//PVS / FSYNC
#define GPO9_VStart     0x7
#define GPO9_VEnd       0x705
#define GPO9_HStart     0x0
#define GPO9_HEnd       0x0
#define GPO9_Control        0x7
//HSYNC
#define GPOA_VStart     0x006
#define GPOA_VEnd       0x408
#define GPOA_HStart     0
#define GPOA_HEnd       0
#define GPOA_Control        0x4

//=================================================================
//Color Temp
#define DefCool_RedColor            128
#define DefCool_GreenColor          125
#define DefCool_BlueColor           145
#define DefNormal_RedColor          141
#define DefNormal_GreenColor        137
#define DefNormal_BlueColor         145
#define DefWarm_RedColor            149
#define DefWarm_GreenColor      145
#define DefWarm_BlueColor           137
#define DefsRGB_RedColor      DefWarm_RedColor
#define DefsRGB_GreenColor  DefWarm_GreenColor
#define DefsRGB_BlueColor     DefWarm_BlueColor